package wicketcool.model.types;

import java.util.ArrayList;
import java.util.List;

/**
 * User: rabbit
 * Date: Aug 6, 2009
 */
public class WCLGenericType extends WCLType{

    private final String name;

    private final List<WCLClassType> extendings;

    public WCLGenericType(String name) {
        this.name = name;
        this.extendings = new ArrayList<WCLClassType>();
    }

    public void addExtending(WCLClassType extending) {
        extendings.add(extending);
    }

    public String getName() {
        return name;
    }

    public List<WCLClassType> getExtendings() {
        return extendings;
    }
}
